import Cookie from "@/utils/cookie";
import http from "@/utils/request";
import windowConst from "@/utils/const";
import axios from "axios";
//资信审查
const postCreditReview = (value) => {
  return http({
    url: "/auth/login",
    method: "post",
    params: value,
    baseURL: windowConst.VUE_APP_API_ZXHC,
  });
};
//全景图查询
const getAllPostComplianceList = (value) => {
  return http({
    url: "/api/getAllPostComplianceList.htm",
    method: "post",
    data: value,
    headers: { "Content-Type": "application/json", aitalk_token: Cookie.getCookie("aitalk_token") },
  });
};
//我的合规清单
const getMineRelatePostComplianceList = (value) => {
  return http({
    url: "/api/getMineRelatePostComplianceList.htm",
    method: "post",
    data: value,
    baseURL: windowConst.VUE_APP_API_HOST,
    headers: { "Content-Type": "application/json", aitalk_token: Cookie.getCookie("aitalk_token") },
  });
};
//导出数据
const download = (value) => {
  return http({
    url: "/api/download.htm",
    method: "post",
    data: value,
    responseType: "blob",
    headers: { "Content-Type": "application/json", aitalk_token: Cookie.getCookie("aitalk_token") },
  });
};
//设置全景图引导页
const setShowedOperationGuide = () => {
  return http({
    url: "/api/setShowedOperationGuide.htm",
    method: "get",
    headers: { aitalk_token: Cookie.getCookie("aitalk_token") },
  });
};
export {
  postCreditReview,
  getAllPostComplianceList,
  getMineRelatePostComplianceList,
  download,
  setShowedOperationGuide,
};
